package com.borya.service.web;

import java.util.List;

import com.borya.model.db.Merchant;
import com.borya.model.db.WhiteConfig;
import com.borya.model.entity.PageArgs;
import com.borya.model.entity.PageData;
import com.borya.model.entity.WhiteProd;

public interface WhiteListService {

	/**
	 * 新增白名单
	 * @param whiteProd
	 * @return
	 * @throws Exception
	 */
	boolean addWhiteProd(WhiteProd whiteProd) throws Exception;

	/**
	 * 查询所有白名单列表
	 * @return
	 */
	List<WhiteProd> findWhiteProdList() throws Exception;

	/**
	 * 由prodId删除白名单产品
	 * @param prodId
	 * @return
	 */
	boolean deleteWhiteProd(String prodId);

	/**
	 * 白名单id查询处白名单产品
	 * @param prodId
	 * @return
	 * @throws Exception
	 */
	boolean isUsedWhiteProdId(String prodId) throws Exception;

	/**
	 *  分页查询商户列表信息
	 * @param dealerId
	 * @param pageArgs
	 * @return
	 * @throws Exception
	 */
	PageData<Merchant> getMerchantConfigByPage(String dealerId,PageArgs pageArgs) throws Exception;

	/**
	 * dealer查询商户售卡范围+白名单配置
	 * @param dealerId
	 * @return
	 */
	List<WhiteConfig> StructureScopes(String dealerId) throws Exception;

	/**
	 * 更新配置项白名单信息
	 * @param configId
	 * @param isLocal
	 * @param whiteIds
	 * @return
	 */
	boolean updateScopeConfig(String configId, String isLocal, String whiteIds) throws Exception;

}
